﻿@model int
@using Jb.Web.Utility;
@{
    String pageTitle = "File Download";
    ViewBag.Title = Html.GetPageTitle(pageTitle);
    String _Message = "Sorry! Something went wrong with your download request.";
    if(Model == -1){
        _Message = "You are not allowed to download this content.";
    }
    else if (Model == -2) {        
        _Message = "A package subscription is required to download resume. <a href='/package/list' class='btn btn-mini'>Subscribe Here</a> to a new package.";
    }
    else if (Model == -3) {
        _Message = "Your package subscription has expired. Please <a href='/package/list' class='btn btn-mini'>Subscribe</a> to a new package to download resume.";
    }
    else if(Model == 1){
        _Message = "Requested content was not found for download.";
    }
    
    if(Model == -2 || Model == -3){
        Layout = "~/Views/Shared/_LayoutPrivate.cshtml";
        ViewData[AppConstants.ViewDataKeys.SELECTED_MENU] = EmployerMenu.SearchResume;
    }
}
<div class="jb-page-heading">
    <h1>@pageTitle</h1>
    <div>
        Something went wrong with your download request.
    </div>
</div>
<div class="jb-page-content">
    @Html.WarningMessageBox(_Message)

    <a href="javascript:history.back(1);">Go Back</a>
</div>